<?php
	namespace Admin\Controller\Auto;
	use Think\Controller;
	class AutoController extends Controller {
		public function _initialize(){
			if(empty(session('id'))){
				echo '<script>alert("请先登录");window.location.href="'.U('admin/user/login/index').'"</script>';
				return ;
			}
		}
	}
?>